


echo '开始打包'
echo '即将删除以前打包目录'
rm -rf ./dist 
echo '删除完成'
echo '开始编译ts文件'
./node_modules/.bin/tsc --build tsconfig.json
echo '编译完成'
echo '开始复制server/public下的静态文件'
cp -r ./server/public ./dist/server/public/
mkdir ./dist/server/public/public
cp -r ./public ./dist/server/public
echo '复制完成'
echo '流程结束'